# Maintainer:
pkgname=py3-ukpostcodeparser
_pkgname=ukpostcodeparser
pkgver=1.1.2
pkgrel=7
pkgdesc="UK Postcode parser"
url="https://github.com/hamstah/ukpostcodeparser"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/hamstah/$_pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
# tests broken upstream: https://github.com/hamstah/ukpostcodeparser/issues/8
options="!check"

replaces="py-ukpostcodeparser" # Backwards compatibility
provides="py-ukpostcodeparser=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="8113522b728c095f937a9f53f21c369130e3e63c4fc3546dbea4ad1c53648742fb0e766b1254c76ee65d69dec585f1a90caa7d39ca540de1765ff5f989a702de  py3-ukpostcodeparser-1.1.2.tar.gz"
